package com.delos.rbac.controller;

import com.delos.rbac.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录处理
 *
 * @author zouyaowen
 * @date 2020-06-28
 */
@RestController
@RequestMapping("/login")
public class LoginController {

    @Autowired
    private ILoginService loginService;

    @PostMapping("/browser")
    public String browserLogin(String userName, String password) {
        return loginService.browserLogin(userName, password);
    }

    @PostMapping("/wei-xin")
    public String weXinLogin(String userName, String password) {
        String str = "-[";
        return loginService.browserLogin(userName, password);
    }
}
